package com.cr.web.controller.lsd;

import com.cr.business.service.ITbScoreRankingInfoService;
import com.cr.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 信用积分榜单
 */
@RestController
@RequestMapping("/lsd/scoreRanking")
public class ScoreRankingController {

    @Resource
    private ITbScoreRankingInfoService tbScoreRankingInfoService;

    /**
     * 获取信用积分榜单
     */
    @GetMapping("data")
    public AjaxResult list() {
        return AjaxResult.success(tbScoreRankingInfoService.getData());
    }

}
